# include <stdio.h>
# include <math.h>
int main()
{
	int m,j;
	for(m=2;m<=10000;m++)
	{
		for(j=2;j<m;j++)
		if(m%j==0) break;
		if(j==m);
		printf("%d\n",m);
	}
	return 0
 ;} 
